package team.seekers.hula.course.resource.sectionContentComment.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import team.seekers.hula.common.entity.enums.StatusEnum;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 回答的评论
 * </p>
 *
 * @author hbc
 * @since 2021-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SectionContent对象", description="课时的评论")
@TableName(value = "course_section_content_comment")
public class SectionContentCommentDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    private String courseId;

    private String sectionContentId;

    private String userId;

    @ApiModelProperty(value = "评论的内容")
    private String content;

    @ApiModelProperty(value = "作者对评论的回复")
    private String reply;

    @ApiModelProperty(value = "评论带图")
    private String pictures;

    @ApiModelProperty(value = "如果是视频，则代表视频播放时间")
    private Integer time;

    @ApiModelProperty(value = "有用度")
    private Integer wind;

    @ApiModelProperty(value = "可视权限")
    private Integer visibility;

    @ApiModelProperty(value = "可视权限")
    private Integer isQuestion;


    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableLogic
    private Integer isDeleted;

    @TableField(select = false)
    @ApiModelProperty(value = "0为待审核，1为审核通过，2为审核不通过")
    @JsonValue
    private StatusEnum status;


}
